package com.wuyoucar.controller;

import com.wuyoucar.service.PersionCenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/consumer")
public class WeatherController {

    @Autowired
    private PersionCenterService weatherService;

    @RequestMapping("/getWeather")
    public Map<Object,Object> getWeather(){
        return weatherService.getWeather();
    }
}
